/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-05-27
 * Time: 22:31
 */
public class Test8 {
    public static void main(String[] args) {
        String s = "hello";    // 字符串转数组
        char[] ch = s.toCharArray();
        for (int i = 0; i < ch.length; i++) {
            System.out.print(ch[i]);
        }
        System.out.println();    // 数组转字符串
        String s2 = new String(ch);
        System.out.println(s2);
    }
}
